<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>将两个div显示在同一行上-使用float</title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			#main{
				clear: both;
			}
			#leftBody{
				height: 50px;
				width: 60%;
				background-color: blue;
			}
			#rightBody{
				height: 50px;
				width: 40%;
				background-color: yellow;
			}
		</style>
	</head>
	<body>
		<div id="main">
			<div id="leftBody"></div>
			<div id="rightBody"></div>
		</div>
	</body>
</html>
